package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.net.ByteArrayEx;

	public class SendUserACardResponsePack extends AbstractReponsePack
	{
		public var cardType:int;

		public function SendUserACardResponsePack(data:ByteArrayEx)
		{
			super(data);
		}

		override public function decode():void
		{
			super.decode();
			data.position = 4;
			cardType = data.readInt();
		}

		override public function get tag():int
		{
			return ProtocalConstants.SEND_USER_A_CARD;
		}
	}
}
